using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntityOnlineCustomerDiscountsUpdateExtend
{
		public static OnlineCustomerDiscounts ToUpdateEntity(this RequestOnlineCustomerDiscountsDto dto)
		{
			return new OnlineCustomerDiscounts
			{
				OcdId = dto.id,
				OcdIsUsed = dto.isUsed,
			};
		}
	}
}
